Page({
  onCounterChange(event) {
    const counter = event.detail
    console.log('onCounterChange', counter)
  },

  onClick() {
    // 获取组件实例
    // const comp = this.selectComponent('#my-comp9')
    const comp = this.selectComponent('.my-comp9')
    comp.increment()
    console.log(comp.data.counter)
  }
})